/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package All.DTO;



/**
 *
 * @author NGUYEN DANG
 */
public class AccountBean {
    String username = null;
    String password = null;
    String hoten = null;
    String ngaysinh = null;
    String gioitinh = null;
    String email = null;
    String dienthoai = null;
    String ngaythamgia  = null;
    String role = null;
    String diachi = null;

    public String getDienthoai() {
        return dienthoai;
    }

    public void setDienthoai(String dienthoai) {
        this.dienthoai = dienthoai;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getGioitinh() {
        return gioitinh;
    }

    public void setGioitinh(String gioitinh) {
        this.gioitinh = gioitinh;
    }

    public String getHoten() {
        return hoten;
    }

    public void setHoten(String hoten) {
        this.hoten = hoten;
    }

    public String getNgaysinh() {
        return ngaysinh;
    }

    public void setNgaysinh(String ngaysinh) {
        this.ngaysinh = ngaysinh;
    }

    public String getNgaythamgia() {
        return ngaythamgia;
    }

    public void setNgaythamgia(String ngaythamgia) {
        this.ngaythamgia = ngaythamgia;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getDiachi() {
        return diachi;
    }

    public void setDiachi(String diachi) {
        this.diachi = diachi;
    }

    public void initUserBeanFromDTO(AccountDTO accountDTO) {
		this.setUsername(accountDTO.getUsername());
		this.setPassword(accountDTO.getPassword());
		this.setHoten(accountDTO.getHoten());
		this.setGioitinh(accountDTO.getGioitinh());
                this.setNgaysinh(accountDTO.getNgaysinh());
		//this.setDiachi(accountDTO.getDiachi());
		this.setEmail(accountDTO.getEmail());
		this.setDienthoai(accountDTO.getDienthoai());
                this.setNgaythamgia(accountDTO.getNgaythamgia());
		this.setRole(accountDTO.getRole());
	}
}
